<include file="public/layout"/>

<style type="text/css">
    html, body {
        overflow: visible;
    }
</style>
<body style="background-color: #FFF; overflow: auto;">
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-card layui-col-md12">
            <div class="layui-card-header">
                视频去水印设置
            </div>
            <div class="layui-card-body" pad15>
                <div class="layui-form form-label-w10" lay-filter="" style="margin-top:20px">
                    <div class="layui-form-item">
                        <label class="layui-form-label">免费次数：</label>
                        <div class="layui-input-inline" style="width:200px">
                            <input type="hidden" name="id" value="{$info.id}" class="layui-input">
                            <input type="text" name="free_num" value="{$info.free_num}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">可免费使用的次数</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">单次费用：</label>
                        <div class="layui-input-inline" style="width:200px">
                            <input type="text" name="pay_num" value="{$info.pay_num}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">每使用一次的费用</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">包用费用：</label>
                        <div class="layui-input-inline" style="width:200px">
                            <input type="text" name="pay_num_month" value="{$info.pay_num_month}" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">每使用一次的费用</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">页面背景色：</label>
                        <div class="layui-input-inline" style="width:200px">
                            <input type="text" name="bgcolor" value="{$info['bgcolor']}"
                                   class="layui-input">
                        </div>
                        <div class="_colorpicker" style="float:left"></div>
                        <div class="layui-form-mid layui-word-aux">页面背景色，如：#FD4A46</div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <div class="layui-input-inline" style="width:500px">
                            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_wx">保 存</button>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(function () {
        layui.form.on('submit(submit_wx)', function (obj) {
            var field = obj.field
            $.post('', obj.field, function (data) {
                dialog(data.msg, data.status, data.url);
            })
        })
    })
</script>
</body>
</html>